package com.bolt.core.view.components;

import java.util.List;

/**
 * @author 米超
 */
public class DataGrid extends ComponentsBase {

    public static final String TEMPLATE = "dataGrid";

    private List <TableHead> heads;

    private List<TableHead> groupHeads;

    private Boolean pagination;

    private Boolean autoCreate;

    private Boolean showLinenumber;

    private String url;

    private String tableTitle;

    private String tableId;

    private String toolbar;

    private Boolean checkBox;

    private Boolean remoteSort;

    private int pageSize = 10;

    public DataGrid() {
    }


    @Override
    protected String getDefaultTemplate() {
        return TEMPLATE;
    }


    public List <TableHead> getHeads() {
        return heads;
    }

    public void setHeads(List <TableHead> heads) {
        this.heads = heads;
    }

    public Boolean getPagination() {
        return pagination;
    }

    public void setPagination(Boolean pagination) {
        this.pagination = pagination;
    }

    public Boolean getAutoCreate() {
        return autoCreate;
    }

    public void setAutoCreate(Boolean autoCreate) {
        this.autoCreate = autoCreate;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTableTitle() {
        return tableTitle;
    }

    public void setTableTitle(String tableTitle) {
        this.tableTitle = tableTitle;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }


    public Boolean getCheckBox() {
        return checkBox;
    }

    public void setCheckBox(Boolean checkBox) {
        this.checkBox = checkBox;
    }

    public Boolean getRemoteSort() {
        return remoteSort;
    }

    public void setRemoteSort(Boolean remoteSort) {
        this.remoteSort = remoteSort;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getToolbar() {
        return toolbar;
    }

    public void setToolbar(String toolbar) {
        this.toolbar = toolbar;
    }

    public List <TableHead> getGroupHeads() {
        return groupHeads;
    }

    public void setGroupHeads(List <TableHead> groupHeads) {
        this.groupHeads = groupHeads;
    }

    public Boolean getShowLinenumber() {
        return showLinenumber;
    }

    public void setShowLinenumber(Boolean showLinenumber) {
        this.showLinenumber = showLinenumber;
    }
}
